const joi = require('joi')
const student_id = joi.number().min(1)
const course_id = joi.number().min(1)
const num = joi.number()



// exports.del_schema = {
//   params: {
//     // id
//   }
// }

exports.add_schema = {
  body: {
    student_id: student_id.required(), course_id: course_id.required(), num: num.required()
  }
}
exports.put_schema = {
  body: {
    student_id: student_id.required(), course_id: course_id.required(), num: num.required()

  }
}
exports.delete_schema = {
  params: {
    student_id: student_id.required(), course_id: course_id.required()
  }
}

exports.find_schema = {
  params: {
    student_id: joi.number(),
    course_id: joi.number(),
  }
}